﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AppFramework.DinosaursParkMes.BOM.Dto
{
    public class BillOfMaterialDto
    {
        /// <summary>
        /// BOM编号
        /// </summary>
        public string Numberbom { get; set; }

        /// <summary>
        /// 版本号
        /// </summary>
        public string Versionnumber { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string Productname { get; set; }

        /// <summary>
        /// 产品编号
        /// </summary>
        public string Productnumber { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string Productmodel { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }

        /// <summary>
        /// 默认BOM
        /// </summary>
        public string Defaultbom { get; set; }

        /// <summary>
        /// 日产量
        /// </summary>
        public int Dailyproduction { get; set; }

        /// <summary>
        /// 父级Id
        /// </summary>
        public int Parentid { get; set; }

        /// <summary>
        /// 路线编号
        /// </summary>
        public string Processnumber { get; set; }

        /// <summary>
        /// 评论
        /// </summary>
        public string Remark { get; set; }

        public List<BillOfMaterialDetailDto> MaterialData { get; set; }

    }
    public class BillOfMaterialDetailDto
    {

        /// <summary>
        /// BOM编号
        /// </summary>
        public string Numberbom { get; set; }

        /// <summary>
        /// 物料编号
        /// </summary>
        public string Materialnumber { get; set; }

        /// <summary>
        /// 使用量
        /// </summary>
        public int Usageamount { get; set; }

        /// <summary>
        /// 使用比例
        /// </summary>
        public int Useratio { get; set; }

        /// <summary>
        /// 配件类型
        /// </summary>
        public string Accessorytype { get; set; }
    }
}
